package com.suzhenyu.dubbo;

import com.alibaba.dubbo.common.extension.ExtensionLoader;
import com.suzhenyu.service.Shape;

/**
 * @author suzy2
 */
public class DubboSpi {

    public static void main(String[] args) {
        ExtensionLoader<Shape> shapeExtensionLoader=ExtensionLoader.getExtensionLoader(Shape.class);
        Shape shape =shapeExtensionLoader.getDefaultExtension();
        shape.draw("circle");
        shape =shapeExtensionLoader.getExtension("rect");
        shape.draw("rect");


    }

}
